function switchSetting(check_all_box){
	
	var selection_status = check_all_box.checked;
	if(selection_status == false)
	{
		uncheckAll();
		//alert(selection_status);
	}
	else
	{
		checkAll();
		//alert(selection_status);
	}
}

function checkAll(){
	var DELETE = document.getElementById("DELETE");
	var DETAIL = document.getElementById("DETAIL");
	var GENERAL = document.getElementById("GENARAL");
	var HIS = document.getElementById("HIS");
	var MAININQ = document.getElementById("MAININQ");
	var MAINTAIN = document.getElementById("MAINTAIN");
	var NEWUSR = document.getElementById("NEWUSR");
	var VERDETAIL = document.getElementById("VERDETAIL");
	var VERGEN = document.getElementById("VERGEN");
	var VERIFY = document.getElementById("VERIFY");
	
	//alert(DELETE + '-' + DETAIL + '-' + GENERAL + '-' +  HIS + '-' + MAININQ + '-' + MAINTAIN + '-' + NEWUSR + '-' + VERDETAIL + '-' + VERGEN + '-' + VERIFY);
	if(DELETE.checked == false){
		DELETE.checked = true;
	}
	if(DETAIL.checked == false){
		DETAIL.checked = true;
	}
	if(GENERAL.checked == false){
		GENERAL.checked = true;
	}
	if(HIS.checked == false){
		HIS.checked = true;
	}
	if(MAININQ.checked == false){
		MAININQ.checked = true;
	}
	if(MAINTAIN.checked == false){
		MAINTAIN.checked = true;
	}
	if(NEWUSR.checked == false){
		NEWUSR.checked = true;
	}
	if(VERDETAIL.checked == false){
		VERDETAIL.checked = true;
	}
	if(VERGEN.checked == false){
		VERGEN.checked = true;
	}
	if(VERIFY.checked == false){
		VERIFY.checked = true;
	}
	
}

function uncheckAll(obj_set_name){
	var DELETE = document.getElementById("DELETE");
	var DETAIL = document.getElementById("DETAIL");
	var GENERAL = document.getElementById("GENARAL");
	var HIS = document.getElementById("HIS");
	var MAININQ = document.getElementById("MAININQ");
	var MAINTAIN = document.getElementById("MAINTAIN");
	var NEWUSR = document.getElementById("NEWUSR");
	var VERDETAIL = document.getElementById("VERDETAIL");
	var VERGEN = document.getElementById("VERGEN");
	var VERIFY = document.getElementById("VERIFY");
	if(DELETE.checked == true){
		DELETE.checked = false;
	}
	if(DETAIL.checked == true){
		DETAIL.checked = false;
	}
	if(GENERAL.checked == true){
		GENERAL.checked = false;
	}
	if(HIS.checked == true){
		HIS.checked = false;
	}
	if(MAININQ.checked == true){
		MAININQ.checked = false;
	}
	if(MAINTAIN.checked == true){
		MAINTAIN.checked = false;
	}
	if(NEWUSR.checked == true){
		NEWUSR.checked = false;
	}
	if(VERDETAIL.checked == true){
		VERDETAIL.checked = false;
	}
	if(VERGEN.checked == true){
		VERGEN.checked = false;
	}
	if(VERIFY.checked == true){
		VERIFY.checked = false;
	}
}